package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.common.web.sso.LoginInfo;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtButcherReports;

import java.util.Map;

/**
 * Created by mz on 18/11/17.
 *
 */
public interface DjtButcherReportsWriteService extends BaseService<DjtButcherReports>{

    /**
     * 新建一单
     * @param djtButcherReports 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> create(DjtButcherReports djtButcherReports , Integer toStatus, LoginInfo loginInfo);

    /**
     * 更新单据
     * @param djtButcherReports 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> update(DjtButcherReports djtButcherReports , Integer toStatus,LoginInfo loginInfo);

    /**
     /**
     * 根据id 更新单据的有效状态
     * @param butcherId 单据id
     */
    void updateDeleteFlag(Long butcherId);
}
